<?php

class Agent_ProfileController extends Zend_Controller_Action
{

    public function init()
    {
    	$authData = Zend_Auth::getInstance()->getStorage()->read();
		if (is_array($authData) and $authData['identity'] != 'anon' and strtolower($authData['userType']) == 'agnt'){
			$_SESSION['agent_reg_id'] = $authData['identity']; 
        } 
    }

    public function indexAction()
    {
        $agent = new Reale_Model_Users_Agent();
        $agent->setAgent_reg_id($_SESSION['agent_reg_id']);
        $result = $agent->getProfile();
        $this->view->assign('personal',$result);
    }
    
	public function manageAction()
	{
		
	}
	
	public function viewAction()
	{
		
	}


}

